<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>包车调度</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/realsche/tRealsche/rentlist">待调度</a></li>
		<li><a href="${ctx}/realsche/tRealsche/dispatchedlist">已调度</a></li>
	</ul>
	 <form:form id="searchForm" modelAttribute="TRealsche" action="${ctx}/realsche/tRealsche/rentlist" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>订单号</th>
				<th>订单名称</th>
				<th>订单日期</th>
				<th>发车日期</th>
				<th>车型</th>
				<th>辆数</th>
				<th>订单状态</th>			
				<shiro:hasPermission name="realsche:tRealsche:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="tRealsche">
			<tr>
				<td>${tRealsche.order.orderid}</td>
				<td>${tRealsche.schename}</td>
				<td><fmt:formatDate value="${tRealsche.order.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td><fmt:formatDate value="${tRealsche.order.departdate}" pattern="yyyy-MM-dd HH:mm:ss"/></td>
				<td>${tRealsche.order.cartype.typename}</td>
				<td>${tRealsche.order.purchasenum}</td>
				<td>${fns:getDictLabel(tRealsche.order.orderstatus, 'orderstatus', '无')}</td>
				<shiro:hasPermission name="realsche:tRealsche:edit"><td>
					<a href="${ctx}/realsche/tRealsche/rentdispform?id=${tRealsche.realscheid}">调度</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>